.class public Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;
.super Lcom/esfile/screen/recorder/base/BaseFragment;
.source "OnlineMusicFragment.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;,
        Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;,
        Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$b;
    }
.end annotation


# static fields
.field public static k:Ljava/lang/String;

.field public static l:Z


# instance fields
.field private c:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/picture/picker/entity/b;",
            ">;"
        }
    .end annotation
.end field

.field private d:Landroidx/recyclerview/widget/RecyclerView;

.field private e:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;

.field private f:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$b;

.field private g:Landroid/view/ViewStub;

.field private h:Z

.field private i:Lcom/esfile/screen/recorder/picture/picker/adapter/holder/e;

.field private j:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/base/BaseFragment;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->h:Z

    return-void
.end method

.method private a(Landroid/content/Context;)Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
    .locals 1

    .line 67
    new-instance v0, Landroidx/recyclerview/widget/LinearLayoutManager;

    invoke-direct {v0, p1}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;)V

    return-object v0
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 2
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->j:Ljava/lang/String;

    return-object p1
.end method

.method private a(IILorg/json/JSONArray;)Ljava/util/List;
    .locals 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(II",
            "Lorg/json/JSONArray;",
            ")",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;",
            ">;"
        }
    .end annotation

    .line 38
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    const/4 v1, 0x0

    const/4 v2, 0x0

    .line 39
    :goto_0
    invoke-virtual {p3}, Lorg/json/JSONArray;->length()I

    move-result v3

    if-ge v2, v3, :cond_3

    .line 40
    new-instance v3, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;

    invoke-direct {v3}, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;-><init>()V

    .line 41
    :try_start_0
    invoke-virtual {p3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v4

    const-string v5, "link"

    .line 42
    invoke-virtual {v4, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 43
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "music link:"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    const-string v7, "OnlineMusic"

    invoke-static {v7, v6}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 44
    invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v6

    if-eqz v6, :cond_0

    goto :goto_2

    :cond_0
    const-string v6, "name"

    .line 45
    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 46
    invoke-static {}, Les/ab;->d()Les/ab;

    move-result-object v7

    .line 47
    invoke-virtual {v7, v6}, Les/ab;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    if-eqz v7, :cond_1

    const/4 v5, 0x1

    .line 48
    invoke-virtual {v3, v5}, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;->a(Z)V

    .line 49
    invoke-virtual {v3, v7}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->a(Ljava/lang/String;)V

    .line 50
    invoke-static {}, Les/ab;->d()Les/ab;

    move-result-object v5

    .line 51
    invoke-virtual {v5, v7}, Les/ab;->d(Ljava/lang/String;)J

    move-result-wide v8

    .line 52
    invoke-virtual {v3, v8, v9}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->a(J)V

    .line 53
    invoke-static {v7}, Lcom/esfile/screen/recorder/utils/i;->h(Ljava/lang/String;)J

    move-result-wide v7

    invoke-virtual {v3, v7, v8}, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;->c(J)V

    goto :goto_1

    .line 54
    :cond_1
    invoke-virtual {v3, v1}, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;->a(Z)V

    .line 55
    invoke-virtual {v3, v5}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->a(Ljava/lang/String;)V

    const-wide/16 v7, 0x0

    .line 56
    invoke-virtual {v3, v7, v8}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->a(J)V

    .line 57
    :goto_1
    invoke-virtual {v3, v6}, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;->b(Ljava/lang/String;)V

    const-string v5, "size"

    .line 58
    invoke-virtual {v4, v5}, Lorg/json/JSONObject;->optLong(Ljava/lang/String;)J

    move-result-wide v5

    invoke-virtual {v3, v5, v6}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->b(J)V

    const-string v5, "mId"

    .line 59
    invoke-virtual {v4, v5}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v5

    invoke-virtual {v3, v5}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->a(I)V

    .line 60
    sget-object v5, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem$MediaType;->AUDIO:Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem$MediaType;

    invoke-virtual {v3, v5}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->a(Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem$MediaType;)V

    const-string v5, "priority"

    .line 61
    invoke-virtual {v4, v5}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v4

    invoke-virtual {v3, v4}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->b(I)V

    .line 62
    invoke-virtual {v3, p1}, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;->c(I)V

    .line 63
    invoke-virtual {v3, p2}, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;->d(I)V

    .line 64
    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_2

    :catch_0
    move-exception v3

    .line 65
    sget-boolean v4, Les/u6;->a:Z

    if-eqz v4, :cond_2

    .line 66
    invoke-virtual {v3}, Lorg/json/JSONException;->printStackTrace()V

    :cond_2
    :goto_2
    add-int/lit8 v2, v2, 0x1

    goto/16 :goto_0

    :cond_3
    return-object v0
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;)Ljava/util/List;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->c:Ljava/util/List;

    return-object p0
.end method

.method private a(Ljava/lang/String;)Ljava/util/List;
    .locals 11
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/picture/picker/entity/b;",
            ">;"
        }
    .end annotation

    if-eqz p1, :cond_4

    .line 3
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 4
    new-instance v1, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    invoke-direct {v1}, Lcom/esfile/screen/recorder/picture/picker/entity/b;-><init>()V

    .line 5
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    const/4 v3, 0x0

    .line 6
    invoke-static {v3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->b(Ljava/lang/String;)V

    .line 7
    invoke-static {v3}, Lcom/esfile/screen/recorder/picture/picker/data/e;->a(I)I

    move-result v4

    invoke-virtual {p0, v4}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v4

    .line 8
    invoke-virtual {v1, v4}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->c(Ljava/lang/String;)V

    .line 9
    :try_start_0
    new-instance v4, Lorg/json/JSONArray;

    invoke-direct {v4, p1}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_2

    .line 10
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result p1

    if-lez p1, :cond_4

    const/4 p1, 0x0

    const/4 v5, 0x0

    .line 11
    :goto_0
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v6

    if-ge p1, v6, :cond_2

    .line 12
    :try_start_1
    invoke-virtual {v4, p1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v6

    const-string v7, "cId"

    .line 13
    invoke-virtual {v6, v7}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v7
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_1

    .line 14
    invoke-static {}, Lcom/esfile/screen/recorder/picture/picker/data/e;->a()Ljava/util/Map;

    move-result-object v8

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v9

    invoke-interface {v8, v9}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_1

    const-string v8, "priority"

    .line 15
    invoke-virtual {v6, v8}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v8

    :try_start_2
    const-string v9, "music"

    .line 16
    invoke-virtual {v6, v9}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v6
    :try_end_2
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_0

    if-eqz v6, :cond_0

    .line 17
    invoke-virtual {v6}, Lorg/json/JSONArray;->length()I

    move-result v9

    if-lez v9, :cond_0

    add-int/lit8 v5, v5, 0x1

    .line 18
    :cond_0
    invoke-direct {p0, v7, v5, v6}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->a(IILorg/json/JSONArray;)Ljava/util/List;

    move-result-object v6

    .line 19
    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v9

    if-lez v9, :cond_1

    .line 20
    new-instance v9, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    invoke-direct {v9}, Lcom/esfile/screen/recorder/picture/picker/entity/b;-><init>()V

    .line 21
    invoke-static {v7}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->b(Ljava/lang/String;)V

    .line 22
    invoke-static {v7}, Lcom/esfile/screen/recorder/picture/picker/data/e;->a(I)I

    move-result v7

    invoke-virtual {p0, v7}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v9, v7}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->c(Ljava/lang/String;)V

    .line 23
    invoke-virtual {v9, v8}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->a(I)V

    .line 24
    invoke-interface {v2, v6}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 25
    new-instance v7, Les/sa;

    invoke-direct {v7}, Les/sa;-><init>()V

    invoke-static {v6, v7}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    .line 26
    invoke-virtual {v9, v6}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->a(Ljava/util/List;)V

    .line 27
    invoke-interface {v0, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1

    :catch_0
    move-exception v6

    .line 28
    sget-boolean v7, Les/u6;->a:Z

    if-eqz v7, :cond_1

    .line 29
    invoke-virtual {v6}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_1

    :catch_1
    move-exception v6

    .line 30
    sget-boolean v7, Les/u6;->a:Z

    if-eqz v7, :cond_1

    .line 31
    invoke-virtual {v6}, Lorg/json/JSONException;->printStackTrace()V

    :cond_1
    :goto_1
    add-int/lit8 p1, p1, 0x1

    goto :goto_0

    .line 32
    :cond_2
    new-instance p1, Les/sa;

    invoke-direct {p1}, Les/sa;-><init>()V

    invoke-static {v2, p1}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    .line 33
    invoke-virtual {v1, v2}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->a(Ljava/util/List;)V

    .line 34
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "online all music category size:"

    invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->c()Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v2, "OnlineMusic"

    invoke-static {v2, p1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 35
    invoke-interface {v0, v3, v1}, Ljava/util/List;->add(ILjava/lang/Object;)V

    return-object v0

    :catch_2
    move-exception p1

    .line 36
    sget-boolean v1, Les/u6;->a:Z

    if-eqz v1, :cond_3

    .line 37
    invoke-virtual {p1}, Lorg/json/JSONException;->printStackTrace()V

    :cond_3
    return-object v0

    :cond_4
    const/4 p1, 0x0

    return-object p1
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;)Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$b;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->f:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$b;

    return-object p0
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;)Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->e:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;

    return-object p0
.end method

.method private j()Landroid/view/View;
    .locals 4

    .line 1
    new-instance v0, Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseFragment;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;-><init>(Landroid/content/Context;)V

    .line 2
    new-instance v1, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$b;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$b;-><init>(Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$a;)V

    iput-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->f:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$b;

    .line 3
    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    const/4 v1, -0x1

    .line 4
    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setBackgroundColor(I)V

    .line 5
    new-instance v1, Landroidx/recyclerview/widget/LinearLayoutManager;

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseFragment;->getContext()Landroid/content/Context;

    move-result-object v2

    const/4 v3, 0x0

    invoke-direct {v1, v2, v3, v3}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;IZ)V

    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    return-object v0
.end method


# virtual methods
.method public a(Lcom/esfile/screen/recorder/picture/picker/adapter/holder/e;)V
    .locals 0

    .line 68
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->i:Lcom/esfile/screen/recorder/picture/picker/adapter/holder/e;

    return-void
.end method

.method public f()Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;
    .locals 1

    .line 12
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->e:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;

    return-object v0
.end method

.method protected f(Z)V
    .locals 2

    .line 1
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->h:Z

    if-eqz p1, :cond_1

    .line 2
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->g:Landroid/view/ViewStub;

    const/4 v0, 0x0

    if-nez p1, :cond_0

    .line 3
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getView()Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_2

    .line 4
    sget v1, Les/x4;->durec_empty_view:I

    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/view/ViewStub;

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->g:Landroid/view/ViewStub;

    .line 5
    invoke-virtual {p1}, Landroid/view/ViewStub;->inflate()Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/esfile/screen/recorder/ui/DuEmptyView;

    .line 6
    sget v1, Les/w4;->durec_no_music:I

    invoke-virtual {p1, v1}, Lcom/esfile/screen/recorder/ui/DuEmptyView;->setIcon(I)V

    .line 7
    sget v1, Les/z4;->durec_no_available_music:I

    invoke-virtual {p1, v1}, Lcom/esfile/screen/recorder/ui/DuEmptyView;->setMessage(I)V

    .line 8
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->g:Landroid/view/ViewStub;

    invoke-virtual {p1, v0}, Landroid/view/ViewStub;->setVisibility(I)V

    goto :goto_0

    .line 9
    :cond_0
    invoke-virtual {p1, v0}, Landroid/view/ViewStub;->setVisibility(I)V

    goto :goto_0

    .line 10
    :cond_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->g:Landroid/view/ViewStub;

    if-eqz p1, :cond_2

    const/16 v0, 0x8

    .line 11
    invoke-virtual {p1, v0}, Landroid/view/ViewStub;->setVisibility(I)V

    :cond_2
    :goto_0
    return-void
.end method

.method public g()V
    .locals 4

    .line 1
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    if-eqz v0, :cond_1

    const/4 v0, 0x4

    .line 2
    invoke-static {v0}, Les/c5;->a(I)Ljava/lang/String;

    move-result-object v0

    .line 3
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "online music json:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "OnlineMusic"

    invoke-static {v2, v1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 4
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->a(Ljava/lang/String;)Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 5
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_0

    .line 6
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "online music category size:"

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v3

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v2, v1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v1, 0x0

    .line 7
    invoke-virtual {p0, v1}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->f(Z)V

    .line 8
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->c:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->clear()V

    .line 9
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->c:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 10
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->e:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;

    invoke-virtual {v2, v1}, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->d(I)V

    .line 11
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->e:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;

    invoke-virtual {v2}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    .line 12
    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->d()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->j:Ljava/lang/String;

    .line 13
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->i()V

    goto :goto_0

    :cond_0
    const/4 v0, 0x1

    .line 14
    invoke-virtual {p0, v0}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->f(Z)V

    :cond_1
    :goto_0
    return-void
.end method

.method public i()V
    .locals 3

    .line 1
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.duapps.recorder.action.SET_TITLE"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 2
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->j:Ljava/lang/String;

    .line 3
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->isAdded()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 4
    sget v1, Les/z4;->durec_add_music:I

    invoke-virtual {p0, v1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v1

    :cond_0
    const-string v2, "android.intent.extra.TITLE"

    .line 5
    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 6
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseFragment;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Landroidx/localbroadcastmanager/content/LocalBroadcastManager;->getInstance(Landroid/content/Context;)Landroidx/localbroadcastmanager/content/LocalBroadcastManager;

    move-result-object v1

    .line 7
    invoke-virtual {v1, v0}, Landroidx/localbroadcastmanager/content/LocalBroadcastManager;->sendBroadcast(Landroid/content/Intent;)Z

    return-void
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 2

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/base/BaseFragment;->onCreate(Landroid/os/Bundle;)V

    .line 2
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->c:Ljava/util/List;

    .line 3
    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->i:Lcom/esfile/screen/recorder/picture/picker/adapter/holder/e;

    invoke-direct {v0, p1, v1}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;-><init>(Ljava/util/List;Lcom/esfile/screen/recorder/picture/picker/adapter/holder/e;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->e:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;

    .line 4
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->g()V

    return-void
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 5
    .param p1    # Landroid/view/LayoutInflater;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Landroid/view/ViewGroup;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param
    .param p3    # Landroid/os/Bundle;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param
    .annotation build Landroidx/annotation/Nullable;
    .end annotation

    .line 1
    sget p3, Les/y4;->durec_video_edit_music_list_layout:I

    const/4 v0, 0x0

    invoke-virtual {p1, p3, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 2
    sget p2, Les/x4;->rv_list:I

    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroidx/recyclerview/widget/RecyclerView;

    iput-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->d:Landroidx/recyclerview/widget/RecyclerView;

    .line 3
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseFragment;->getContext()Landroid/content/Context;

    move-result-object p3

    invoke-direct {p0, p3}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->a(Landroid/content/Context;)Landroidx/recyclerview/widget/RecyclerView$LayoutManager;

    move-result-object p3

    invoke-virtual {p2, p3}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    .line 4
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->d:Landroidx/recyclerview/widget/RecyclerView;

    iget-object p3, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->e:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;

    invoke-virtual {p2, p3}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    .line 5
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->d:Landroidx/recyclerview/widget/RecyclerView;

    new-instance p3, Landroidx/recyclerview/widget/DefaultItemAnimator;

    invoke-direct {p3}, Landroidx/recyclerview/widget/DefaultItemAnimator;-><init>()V

    invoke-virtual {p2, p3}, Landroidx/recyclerview/widget/RecyclerView;->setItemAnimator(Landroidx/recyclerview/widget/RecyclerView$ItemAnimator;)V

    .line 6
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->d:Landroidx/recyclerview/widget/RecyclerView;

    .line 7
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;

    move-result-object p3

    sget v1, Les/v4;->durec_picker_recyclerview_pb:I

    invoke-virtual {p3, v1}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result p3

    .line 8
    invoke-virtual {p2, v0, v0, v0, p3}, Landroid/view/ViewGroup;->setPadding(IIII)V

    .line 9
    sget p2, Les/x4;->header_view:I

    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/FrameLayout;

    .line 10
    new-instance p3, Landroid/widget/LinearLayout;

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseFragment;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {p3, v1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 11
    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v2, -0x1

    invoke-direct {v1, v2, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 12
    invoke-virtual {p3, v1}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const/4 v1, 0x1

    .line 13
    invoke-virtual {p3, v1}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 14
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->j()Landroid/view/View;

    move-result-object v3

    invoke-virtual {p3, v3}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 15
    new-instance v3, Landroid/view/View;

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseFragment;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-direct {v3, v4}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    .line 16
    new-instance v4, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v4, v2, v1}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 17
    invoke-virtual {v3, v4}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const-string v1, "#e3e2e2"

    .line 18
    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v3, v1}, Landroid/view/View;->setBackgroundColor(I)V

    .line 19
    invoke-virtual {p3, v3}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 20
    invoke-virtual {p2, p3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    .line 21
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->d:Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {p2, v0, v0, v0, v0}, Landroid/view/ViewGroup;->setPadding(IIII)V

    return-object p1
.end method

.method public onDestroy()V
    .locals 1

    .line 1
    invoke-super {p0}, Landroidx/fragment/app/Fragment;->onDestroy()V

    .line 2
    invoke-static {}, Les/ab;->d()Les/ab;

    move-result-object v0

    invoke-virtual {v0}, Les/ab;->a()V

    const/4 v0, 0x0

    .line 3
    sput-boolean v0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->l:Z

    return-void
.end method

.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 0
    .param p1    # Landroid/view/View;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Landroid/os/Bundle;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    .line 1
    invoke-super {p0, p1, p2}, Landroidx/fragment/app/Fragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V

    .line 2
    iget-boolean p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->h:Z

    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->f(Z)V

    return-void
.end method
